package entity

import (
	"hobby-mate/common"
)

// AccountRelationship 用户关系表
type AccountRelationship struct {
	RelationshipId   string `json:"relationshipId" form:"relationship_id"   gorm:"primary_key;comment:用户关系唯一标识符"`
	MasterID         string `json:"masterId" form:"master_id"  gorm:"not null;comment:触发者"`
	GuestID          string `json:"guestId" form:"guest_id"  gorm:"not null;comment:受邀者"`
	RelationshipType string `json:"relationshipType" form:"relationship_type"  gorm:"not null;comment:关系类型"`
	common.BaseEntity
}

func (AccountRelationship) TableName() string {
	return "t_account_relationship"
}
